package com.gxa.saas.service;

import com.gxa.saas.pojo.Purchase;
import com.gxa.saas.pojo.PurchaseRequest;
import com.gxa.saas.pojo.Storage;

import java.util.List;
import java.util.Map;

public interface PurchaseRequestService {
    List<PurchaseRequest> selectBySecondPage(Integer offset, Integer size);
    Integer insert(PurchaseRequest purchaseRequest);
    List<PurchaseRequest> selectLikeName(String name, Integer offset, Integer size);
    Integer update(Purchase purchase);
    Integer delete(Integer id);
    Storage selectById(Integer id);
    List<PurchaseRequest> selectBySupplier();
    List<PurchaseRequest> selectByPayType();
    List<PurchaseRequest> selectByApprover();
    List<PurchaseRequest> selectByCreatePerson();
    List<PurchaseRequest> selectByNumber(Integer id);
    Integer submit(Purchase purchase);
    Integer getGotal();
    Integer updateByAmount(Integer id,Integer bigAmount,Integer smallAmount,Double money);
    PurchaseRequest selectByPrId(Integer pid);
    List<PurchaseRequest> selectAll();
    Integer getTotal();
    List<PurchaseRequest> selectByFid(Integer id);
    List<Purchase> selectByUid(Integer id);
}
